<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生选课</title>
</head>
<body>

    <form action="" method="post" name="view_bulletin" enctype="multipart/form-data">

        <table>
            <tr>
                <th>
                    老师名称
                </th>
                <th>
                    课程名称
                </th>
                <th>
                    剩余人数
                </th>
            </tr>
            {%for i in form.student_choise_course_list%}
            <tr>
                <th>{{i.teacher_name.data}}</th>
                <th>{{i.course.data}}</th>
                <th>{{i.count.data}}</th>
                <input type="submit" value="选修{{i.teacher_name.data}}" name={{i.teacher_id.data}}>
            </tr>
            {%endfor%}
        </table>
<div>
    已选修： {{form.teacher_name}}
</div>



    </form>
</body>
</html>